#!/bin/bash
source device/anlogic_dr1v90/Config.mk

# Jobs
export ANLOGIC_JOBS=32
# Target arch
export ANLOGIC_ARCH=riscv
# target chip
export ANLOGIC_TARGET_PRODUCT=dr1v90
# Toolchain
export ANLOGIC_TOOLCHAIN=toolchains/riscv/gcc/bin/riscv-nuclei-linux-gnu-
# Opensbi riscv
export ANLOGIC_OPENSBI=opensbi
# Opensbi platform
export ANLOGIC_OPENSBI_PLATFORM=dr1v90
# Opensbi board
export ANLOGIC_OPENSBI_BOARD=AD101_V1_0
# Opensbi base
export ANLOGIC_OPENSBI_BASE=0x3FE00000
# Opensbi jump addr
export ANLOGIC_OPENSBI_JUMP=0x200000
# Uboot defconfig
export ANLOGIC_UBOOT_DEFCONFIG=anlogic_dr1v90_nor_16MB_evb_defconfig
# Uboot dts
export ANLOGIC_UBOOT_DTS=anlogic-dr1v90-evb.dts
# Uboot image path
export ANLOGIC_UBOOT_IMG=device/output/anlogic_dr1v90/u-boot/u-boot.bin
# Kernel defconfig
export ANLOGIC_KERNEL_DEFCONFIG=anlogic_dr1v90_defconfig
# Kernel dts
export ANLOGIC_KERNEL_DTS=anlogic-dr1v90-evb.dts
# Kernel dtb path
export ANLOGIC_KERNEL_DTB=device/output/anlogic_dr1v90/linux/arch/riscv/boot/dts/anlogic/anlogic-dr1v90-evb.dtb
# kernel image path
export ANLOGIC_KERNEL_IMG=device/output/anlogic_dr1v90/linux/arch/riscv/boot/Image.gz
# Buildroot config
export ANLOGIC_BUILDROOT_DEFCONFIG=anlogic_dr1v90_defconfig
# Buildroot image path
export ANLOGIC_BUILDROOT_IMG=device/output/anlogic_dr1v90/buildroot/images/rootfs.jffs2
# Boot script file
export ANLOGIC_BOOTSCR="parameter-nor-mtd-16MB.txt"
# Boot script image path
export ANLOGIC_BOOTSCR_IMG=device/output/anlogic_dr1v90/bootscr/boot.scr
# Bootgen config
export ANLOGIC_BOOTGEN_CONFIG="boot-rpu-evb.bif"
